<?php
require_once 'common.php';

	if (isset($_POST)) {

echo $_POST . "<br/>";
var_dump($_POST);
		$friends = $_POST["friends"];

		echo("Friends selected: " . count($friends) . "<br><br>");

		if (count($friends)>0) {
			echo("You chose the following friends:<br>");
		}

		for ($i=0; $i<count($friends); $i++) {
			echo( ($i+1) . " " . $friends[$i] . "<br>");
		}
	}

?>
